testsuite: omit some selection properties
authorMatthias Clasen <mclasen@redhat.com>
Sun, 10 Feb 2019 03:54:37 +0000 (22:54 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 10 Feb 2019 23:43:59 +0000 (18:43 -0500)
The selected property of GtkSingleSelection is not
freely settable, so omit it from notification tests.

testsuite/gtk/notify.c

index 228195b2d3ef89bd4266a93b3c0956d7e1db86b4..20315b22f2d5ad027d01888318f2bd0a14cbe5fb 100644 (file)
@@ -611,6 +611,12 @@ test_type (gconstpointer data)
          g_str_equal (pspec->name, "expanded"))
        continue;
 
+       /* can't select items without an underlying, populated model */
+       if (g_type_is_a (type, GTK_TYPE_SINGLE_SELECTION) &&
+           (g_str_equal (pspec->name, "selected") ||
+            g_str_equal (pspec->name, "selected-item")))
+         continue;
+
       if (g_test_verbose ())
         g_print ("Property %s.%s\n", g_type_name (pspec->owner_type), pspec->name);